package com.yixin.hospital.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yixin.hospital.common.ApiResult;
import com.yixin.hospital.entity.domain.DrugDepositoryDutyAuth;
import com.yixin.hospital.entity.dto.req.drugdepositoryAuth.DrugDepositoryAuthReqDTO;
import com.yixin.hospital.entity.vo.DrugDepositoryAuthVo;

import java.util.List;

/**
* @author Administrator
* @description 针对表【drug_depository_auth(药品仓库权限表)】的数据库操作Service
* @createDate 2024-07-30 14:53:45
*/
public interface DrugDepositoryDutyAuthService extends IService<DrugDepositoryDutyAuth> {

    ApiResult<List<DrugDepositoryAuthVo>> allList(Long userId);

    ApiResult add(DrugDepositoryAuthReqDTO reqDTO, String userName);

    ApiResult delete(DrugDepositoryAuthReqDTO reqDTO);

    boolean checkDrugDepositoryAuth(Long userId, Long depositoryId, Integer optType);

    ApiResult<List<Long>> getDepositoryIdListByAuth(Integer optType, Long userId);

}
